import request from '@/utils/request'
import md5 from 'md5'

interface LoginResponse {
  code: number
  message: string
  data?: any
}

export const loginApi = (account: string, password: string) => {
  return request<LoginResponse>({
    url: '/pp/biz01/api/Biz01Login',
    method: 'get',
    params: {
      account,
      password: md5(password)
    }
  })
}
